package com.xinminda.dcf.ui.personal.activity;

import android.widget.Button;
import com.xinminda.dcf.R;
import com.xinminda.dcf.test.RequestParams;
import com.xinminda.dcf.ui.base.BaseActivity;
import com.xinminda.dcf.ui.personal.contract.LoginContract;
import com.xinminda.dcf.ui.personal.model.LoginModel;
import com.xinminda.dcf.ui.personal.presenter.LoginPresenter;
import butterknife.BindView;
import butterknife.OnClick;


public class LoginActivity extends BaseActivity<LoginPresenter, LoginModel> implements LoginContract.View {

    @BindView(R.id.btn_login_login)
    Button mBtnLogin;

    @Override
    protected int getLayout() {
        return R.layout.activity_login;
    }

    @Override
    protected void init() {}

    @Override
    public void initPresenter() {
        mPresenter.setVM(this, mModel);
    }

    @Override
    public void returnLoginData() {}

    @OnClick(R.id.btn_login_login)

    void onClick() {
        submit();
    }

    public void submit() {
        mPresenter.getLoginRequest(RequestParams.getHeader("demo.login"), RequestParams.getLoginParams("admin", "123456"));

    }
}
